import request from './request'
// const ApiRootUrl = 'https://myt.178mr.com/miniprogram/1.02/'
const ApiRootUrl = 'http://192.168.31.126:8888/miniprogram/1.02/'
const api = {
  // 获取登录态
  wxlogin: (paramObj) => request.post('system/wxlogin', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 微信登录
  AuthLoginByWeixin: ApiRootUrl + 'system/getlogin',
  // 微信手机号快速登录
  AuthgetphoneNumber: ApiRootUrl + 'system/getphoneNumber',
  // 更改密码
  ChangePass: ApiRootUrl + 'system/changepass',
  // 登录接口
  getlogin: (paramObj) => request.post('system/getlogin', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取用户登录信息
  getuserinfo: (paramObj) => request.get('user/getuserinfo', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 请求用户提交设置出勤状态
  postonwork: (paramObj) => request.post('system/postonwork', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 请求获取当前用户的出勤情况
  getuserwork: (paramObj) => request.get('user/getuserwork', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 请求用户提交设置结束工作状态
  postendwork: (paramObj) => request.post('system/postendwork', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取七牛上传图片的验证token
  getqiuniutoken: (paramObj) => request.post('system/gettoken', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取用户当月的出勤记录
  getusermonthworkinfo: (paramObj) => request.get('user/getusermonthworkinfo', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取员工月份工资明细
  getusermoneylist: (paramObj) => request.get('user/getusermoneylist', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 请求获取机构的订单捷报列表
  getorcodeorderlist: (paramObj) => request.get('system/getorcodeorderlist', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 更新数据库中的头像id和头像url
  postuserhead: (paramObj) => request.post('user/postuserhead', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取客户列表
  getguestlists: (paramObj) => request.post('guest/getguestlist', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取我服务的客户列表
  getguestmyfuwu: (paramObj) => request.get('guest/getguestmyfuwu', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取订单列表
  getorderlists: (paramObj) => request.post('order/getorderlistall', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取首页动态的图表数据
  getsystemdongtai: (paramObj) => request.post('system/getsystemdongtai', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取首页动态展示数据
  getindexdongtai: (paramObj) => request.get('system/getindexdongtai', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取订单详细信息
  getorderinfo: (paramObj) => request.post('order/getorderinfo', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取员工提成工资的列表
  getusermoneysaleinfo: (paramObj) => request.get('user/getusermoneysaleinfo', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取员工基本工资的列表
  getusermoneyinfo: (paramObj) => request.get('user/getusermoneyinfo', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取今日员工的考勤状态
  getuserkaoqinlist: (paramObj) => request.get('user/getuserkaoqinlist', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 考勤审核时获取员工当日的考勤记录
  getuserthisdayworkinfo: (paramObj) => request.get('user/getuserthisdayworkinfo', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 审核用户考勤
  postusershenhework: (paramObj) => request.post('user/postusershenhework', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取机构人员管理门店的信息
  getmyjsonshoplist: (paramObj) => request.get('system/getmyjsonshoplist', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 提交工作报表
  getreportform: (paramObj) => request.post('user/getreportform', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取当前用户下的下属员工
  getmyworker: (paramObj) => request.get('user/getmyworker', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取员工页面数据
  getuserdata: (paramObj) => request.get('user/getuserdata', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取为完成的服务记录
  getordernojilutodaylist: (paramObj) => request.get('system/getordernojilutodaylist', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 请求工作页面top信息记录数量
  getsystemworkinfo: (paramObj) => request.get('system/getsystemworkinfo', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取业绩提成信息下的订单信息
  getosyinfo: (paramObj) => request.get('system/getosyinfo', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取并保存服务记录
  postjiluhuifang: (paramObj) => request.post('system/postjiluhuifang', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取客户订单列表
  getorderguestlist: (paramObj) => request.get('order/getorderguestlist', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取为完成的回访记录
  getordernohuifangtodaylist: (paramObj) => request.get('system/getordernohuifangtodaylist', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取业绩数据
  getyeji: (paramObj) => request.post('yeji/getyeji', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取员工年度产值表
  getworkerchanzhi: (paramObj) => request.post('shengtai/getworkerchanzhi', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取当前机构的门店列表
  selectshop: (paramObj) => request.post('shengtai/selectshop', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取生态店务板块年度数据
  getshopniandu: (paramObj) => request.post('shengtai/getshopniandu', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取今日上班员工
  gettodaywork: (paramObj) => request.get('user/gettodaywork', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 客户现金消费列表
  getGuestCashConsumeList: (paramObj) => request.get('settlement/getGuestCashConsumeList', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取今日出单员工列表
  getsaleusertoday: (paramObj) => request.get('user/getsaleusertoday', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取今日已服务的客户
  getguestfuwutoday: (paramObj) => request.get('user/getguestfuwutoday', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取今日销售业绩分类
  getdongtaixianjintoday: (paramObj) => request.get('user/getdongtaixianjintoday', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取客户的基础信息
  getGuestBaseInfoList: (paramObj) => request.get('settlement/getGuestBaseInfoList', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取今日卡耗业绩分类
  getdongtaixiaohaotoday: (paramObj) => request.get('user/getdongtaixiaohaotoday', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取客户的基本信息
  getguestbaseinfo: (paramObj) => request.get('guest/getguestbaseinfo', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取指定客户三个月内的消费 消耗 和 到店次数
  getguestthreemonthinfo: (paramObj) => request.get('guest/getguestthreemonthinfo', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取客户的分类页面信息
  getguesttypeinfo: (paramObj) => request.get('guest/getguesttypeinfo', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 更新客户的分类信息
  postguesttype: (paramObj) => request.post('guest/postguesttype', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取客户的基础信息
  getUserKaoqinList: (paramObj) => request.get('settlement/getUserKaoqinList', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 员工工资数据
  getUserGongziByYear: (paramObj) => request.get('settlement/getUserGongziByYear', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 休眠顾客分析表
  getGuestDormancyInfo: (paramObj) => request.get('settlement/getGuestDormancyInfo', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 顾客到店分析表
  getGuestArriveInfo: (paramObj) => request.get('settlement/getGuestArriveInfo', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取客户跟进信息(会员三期)
  getguestsanqi: (paramObj) => request.get('guest/getguestsanqi', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取客户账户信息接口
  getguestaccountinfo: (paramObj) => request.get('guest/getguestaccountinfo', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取客户账户的次卡信息
  getguestcikalist: (paramObj) => request.get('guest/getguestcikalist', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取客户账户的期卡信息
  getguestqikalist: (paramObj) => request.get('guest/getguestqikalist', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取客户暂存商品信息
  getguestgoodslist: (paramObj) => request.get('guest/getguestgoodslist', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 目标客户需求分析表
  getGuestNeedList: (paramObj) => request.get('settlement/getGuestNeedList', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取客户基本信息
  getguestinfocomme: (paramObj) => request.get('guest/getguestinfocomme', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取客户基本档案信息
  getguestbasearchives: (paramObj) => request.get('guest/getguestbasearchives', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 更新客户基本信息
  updateguestbaseinfo: (paramObj) => request.post('guest/updateguestbaseinfo', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 更新客户档案信息
  updateguestarchives: (paramObj) => request.post('guest/updateguestarchives', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 拓客管理信息
  expandingCustomers: (paramObj) => request.get('guest/expandingCustomers', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 拓客信息详情
  expandingCustomersDetails: (paramObj) => request.get('guest/expandingCustomersDetails', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 判断分享页面客户是否注册
  customerRegistration: (paramObj) => request.post('guest/customerRegistration', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 拓客注册客户
  customerAdd: (paramObj) => request.post('guest/customerAdd', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取客户年度规划信息
  getguestyearplan: (paramObj) => request.get('guest/getguestyearplan', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 提交客户规划年度业绩
  postguestplanyear: (paramObj) => request.post('guest/postguestplanyear', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 根据规划订单order的id 获取产品详细列表
  getplanorderinfolist: (paramObj) => request.get('plan/getplanorderinfolist', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取机构里的会员诊断设置信息
  getadmindiagnosedlist: (paramObj) => request.get('system/getadmindiagnosedlist', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 设置会员诊断信息
  postguestzengduan: (paramObj) => request.post('system/postguestzengduan', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取该客户下制定类型的特殊日期
  getguestspecialdate: (paramObj) => request.get('guest/getguestspecialdate', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 删除客户的某条特殊日期记录
  postdelguestspecialdate: (paramObj) => request.post('guest/postdelguestspecialdate', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取前端提交的特殊日期并保存到数据库
  postaddguestspecialdate: (paramObj) => request.post('guest/postaddguestspecialdate', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 加入特殊日期到我的日程中
  postaddspecialdaymanage: (paramObj) => request.post('user/postaddspecialdaymanage', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取该客户下指定nature信息
  getguestnaturedate: (paramObj) => request.get('guest/getguestnaturedate', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 删除指定nature日志
  postdelnaturedate: (paramObj) => request.post('guest/postdelnaturedate', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 新增指定nature日志
  postaddguestnature: (paramObj) => request.post('guest/postaddguestnature', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 删除服务器中预留的客户相册照片
  postdelguestalbum: (paramObj) => request.post('guest/postdelguestalbum', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取shopid
  getshopid: (paramObj) => request.get('system/getshopid', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 上传服务器中预留的客户相册照片
  postaddguestalbum: (paramObj) => request.post('guest/postaddguestalbum', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取员工业绩图表
  getcheckemployeesAchievement: (paramObj) => request.get('system/getcheckemployeesAchievement', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取客户照片
  getguestalbum: (paramObj) => request.get('guest/getguestalbum', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 删除七牛云中的图片
  delqiniuimg: (paramObj) => request.post('system/delqiniuimg', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 请求获取店内产品列表
  getshopgoodslist: (paramObj) => request.get('system/getshopgoodslist', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 请求获取店内项目列表
  getshopsubjectlist: (paramObj) => request.get('system/getshopsubjectlist', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取机构下分店相关数据总览
  getshopdata: (paramObj) => request.post('yeji/getshopdata', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取前端提交的规划数据
  postaddplaninfo: (paramObj) => request.post('plan/postaddplaninfo', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取机构下分店业绩数据
  getshopyejidata: (paramObj) => request.post('yeji/getshopyejidata', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 根据开始时间和结束时间查找规划数据
  getplaninfomonth: (paramObj) => request.get('plan/getplaninfomonth', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取机构下分店客户列表
  getshopguests: (paramObj) => request.post('yeji/getshopguests', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 根据当前提供的部门id 获取店长下的所有部门的员工规划
  getplaninfodianzhang: (paramObj) => request.get('plan/getplaninfodianzhang', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取机构下分店员工列表
  getshopusers: (paramObj) => request.post('yeji/getshopusers', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取部门规划
  getplaninfozongbu: (paramObj) => request.get('plan/getplaninfozongbu', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 根据当前提供的部门id 获取经理下的所有小组 和小组下的员工规划
  getplaninfojingli: (paramObj) => request.get('plan/getplaninfojingli', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取小组规划
  getplaninfoxiaozu: (paramObj) => request.get('plan/getplaninfoxiaozu', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取团队年规划
  getgroupyearplan: (paramObj) => request.get('plan/getgroupyearplan', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取个人年度规划
  getworkeryearplan: (paramObj) => request.get('plan/getworkeryearplan', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取个人年度规划
  getgroupmonthplan: (paramObj) => request.get('plan/getgroupmonthplan', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取员工月度规划
  getworkermonthplan: (paramObj) => request.get('plan/getworkermonthplan', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取员工服务客户现金业绩
  getworkerservice: (paramObj) => request.get('user/getworkerservice', paramObj, {
    baseURL: ApiRootUrl
  }),
  // 获取员工服务客户卡号业绩
  getworkerkhyeji: (paramObj) => request.get('user/getworkerkhyeji', paramObj, {
    baseURL: ApiRootUrl
  })
}

export default api
